package com.ykdl.member.kid.beans;

import java.io.Serializable;
import java.util.ArrayList;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class Invitation_StoresBean implements Serializable, IJsonParser{

	/**
	 *  "can_join_stores_num": 3,
        "store_list": [
            {
                "store_id": 100100268,
                "name": "逗比的门店" 
            }
        ]
	 */
	private static final long serialVersionUID = 1L;
	private int can_join_stores_num;
	private ArrayList<StoreInfoJsonBean> store_list;
	public int getCan_join_stores_num() {
		return can_join_stores_num;
	}
	public ArrayList<StoreInfoJsonBean> getStore_list() {
		return store_list;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, Invitation_StoresBean.class);
		}
		return null;
	}

}
